UCF STIG Viewer Logo

The Juniper router must be configured to produce audit records containing information to establish where the events occurred.


Overview

Finding ID Version Rule ID IA Controls Severity
V-253996 JUEX-RT-000240 SV-253996r844021_rule Medium
Description
Without establishing where events occurred, it is impossible to establish, correlate, and investigate the events leading up to an outage or attack. To compile an accurate risk assessment and provide forensic analysis, it is essential for security personnel to know where events occurred, such as router components, modules, device identifiers, node names, and functionality. Associating information about where the event occurred within the network provides a means of investigating an attack, recognizing resource utilization or capacity thresholds, or identifying an improperly configured router.
STIG Date
Juniper EX Series Switches Router Security Technical Implementation Guide 2023-03-23

Details

Check Text ( C-57448r844019_chk )
The router must log all packets that have been dropped via the stateless firewall filter. Verify all discarding firewall filter terms are configured to send events to syslog.
Note: Stateless firewall filters support "log" and "syslog" actions. The "log" action maintains a temporary list of events and the "syslog" action generates events for local storage and/or external syslog servers. Verify at least "syslog" is associated with all discarding terms.

For example:
[edit firewall]
family inet {
filter {
term 1 {
from {
;
}
then {
log;
syslog; <<< At a minimum, the 'syslog' action must be enabled for all discarding terms.
discard;
}
}
}
}
family inet6 {
filter {
term 1 {
from {
;
}
then {
log;
syslog; <<< At a minimum, the 'syslog' action must be enabled for all discarding terms.
discard;
}
}
}
}

If the router fails to log all packets that have been dropped via the firewall filter, this is a finding.

Verify logging is enabled for local and/or external syslog. To meet this requirement, either the "any" or the "firewall" logging facility must be enabled.
Note: To reduce log sizes and to segregate entries, a separate log file for firewall entries is permissible.

[edit system syslog]
host {
any info;
log-prefix ;
explicit-priority;
}
file messages {
any info;
}
time-format year;

Log output must contain an interface name identifying where the packet was filtered.
Note: Logged firewall events include the interface and cannot be configured otherwise. There is no provision for changing the log message or for removing the interface name.

If the logged output does not contain an interface name identifying where the packet was filtered, this is a finding.
Fix Text (F-57399r844020_fix)
Configure the router to record the interface in the log record for packets being dropped.

Example firewall filter with logging enabled:
set firewall family inet filter term 1 from
set firewall family inet filter term 1 then log
set firewall family inet filter term 1 then syslog <<< Must be enabled for all discarding terms
set firewall family inet filter term 1 then discard
set firewall family inet6 filter term 1 from
set firewall family inet6 filter term 1 then log
set firewall family inet6 filter term 1 then syslog <<< Must be enabled for all discarding terms
set firewall family inet6 filter term 1 then discard

Example consolidated logging:
set syslog host any info
set system syslog file messages any info